﻿namespace WebAPI.Entities.Dto;

public class ArticleDto
{
    private string _userId;
    private string _title;
    private string _innerText;
    private string _tag;
    private long _star;
    private long _watcher;

    public ArticleDto(string userId, string title, string innerText, string tag, long star, long watcher)
    {
        _userId = userId;
        _title = title;
        _innerText = innerText;
        _tag = tag;
        _star = star;
        _watcher = watcher;
    }

    public ArticleDto()
    {
    }

    public string UserId
    {
        get => _userId;
        set => _userId = value ?? throw new ArgumentNullException(nameof(value));
    }

    public string Title
    {
        get => _title;
        set => _title = value ?? throw new ArgumentNullException(nameof(value));
    }

    public string InnerText
    {
        get => _innerText;
        set => _innerText = value ?? throw new ArgumentNullException(nameof(value));
    }

    public string Tag
    {
        get => _tag;
        set => _tag = value ?? throw new ArgumentNullException(nameof(value));
    }

    public long Star
    {
        get => _star;
        set => _star = value;
    }

    public long Watcher
    {
        get => _watcher;
        set => _watcher = value;
    }
}